#pragma once
#include <SFML\Graphics.hpp>
#include "Player.h"
#include "Animation.h"

class Barrel {
public:
	Barrel();
	~Barrel();

	void Initialize(sf::RenderWindow* window, int Pos, sf::Texture* texture, sf::Texture* splashTexture, sf::Texture* bloodTexture);
	void Update(Player* player);
	void Render();
	void Cleanup();
	void Reset();
	bool				m_isDead;

private:
	float				m_scale; 
	bool				m_hit;
	float				m_speed;
	int					m_pos;
	float				m_hitEffect;
	float				m_deltaTime;
	float				m_alphaBlood;
	sf::RenderWindow*	m_renderWindow;
	sf::Clock*			m_clock;
	sf::Sprite*			m_brlSprite;
	sf::Sprite*			m_hitSprite;
	sf::Sprite*			m_bloodSprite;

	Animation* m_anim;
};
